﻿using System;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using QstkCore;
using QstkCore.DataAccess;
using QstkCore.Domain;

namespace Tests
{
    [TestClass]
    public class DataAccessTests
    {
        [TestMethod]
        public void BasicDataAccessTest()
        {
            var da = DataAccess.GetInstance();

            var timestamps = new TimeSeries(new[] { new DateTime(2012, 08, 30) });
            IEnumerable<string> symbols = new List<string> { @"$DJI" };
            da.GetMarketData(symbols, "Close", timestamps);
        }
    }
}
